package com.example.cloudmaps;

public class Place {
	/*
	 * Private members
	 */
	private String name;
	private String address;
	private Double latitude;
	private Double longitude;
	
	/*
	 * Generated getters and setters.
	 */
	
	public Place(){
		name = "";
		address = "";
		latitude = 0.0;
		longitude = 0.0;
	}
	
	public Place(String name,String address, Double latitude, Double longitude){
		this.name = name;
		this.address = address;
		this.latitude = latitude;
		this.longitude = longitude;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Double getLatitude() {
		return latitude;
	}
	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}
	public Double getLongitude() {
		return longitude;
	}
	public void setLogitude(Double longitude) {
		this.longitude = longitude;
	}
	/*
	 * ToString, used by adapters
	 */
	@Override
	public String toString(){
		return name;
	}
}
